.class public abstract Lcom/burstly/lib/conveniencelayer/BurstlyBaseAd;
.super Ljava/lang/Object;
.source "BurstlyBaseAd.java"


# annotations
.annotation system Ldalvik/annotation/MemberClasses;
    value = {
        Lcom/burstly/lib/conveniencelayer/BurstlyBaseAd$CachingState;
    }
.end annotation


# static fields
.field protected static sLog:Lcom/burstly/lib/util/LoggerExt;


# instance fields
.field protected mActivity:Landroid/app/Activity;

.field private mActivityListener:Lcom/burstly/lib/conveniencelayer/IActivityListener;

.field protected mAdSize:Lcom/burstly/lib/conveniencelayer/BurstlyAdSize;

.field private mBurstlyAdListener:Lcom/burstly/lib/ui/IBurstlyAdListener;

.field private mBurstlyView:Lcom/burstly/lib/ui/BurstlyView;

.field protected mCachingState:Lcom/burstly/lib/conveniencelayer/BurstlyBaseAd$CachingState;

.field protected mCurrentCreative:Ljava/lang/String;

.field protected mFailedCreativesList:Ljava/util/ArrayList;
    .annotation system Ldalvik/annotation/Signature;
        value = {
            "Ljava/util/ArrayList",
            "<",
            "Ljava/lang/String;",
            ">;"
        }
    .end annotation
.end field

.field protected mFragment:Landroid/support/v4/app/Fragment;

.field private mFragmentListener:Lcom/burstly/lib/conveniencelayer/IFragmentListener;

.field protected mLastCache:Lcom/burstly/lib/conveniencelayer/events/AdCacheEvent;

.field protected mLastShow:Lcom/burstly/lib/conveniencelayer/events/AdShowEvent;

.field protected final mListeners:Ljava/util/List;
    .annotation system Ldalvik/annotation/Signature;
        value = {
            "Ljava/util/List",
            "<",
            "Lcom/burstly/lib/conveniencelayer/IBurstlyListener;",
            ">;"
        }
    .end annotation
.end field


# direct methods
.method static constructor <clinit>()V
    .locals 1

    .prologue
    .line 48
    invoke-static {}, Lcom/burstly/lib/util/LoggerExt;->getInstance()Lcom/burstly/lib/util/LoggerExt;

    move-result-object v0

    sput-object v0, Lcom/burstly/lib/conveniencelayer/BurstlyBaseAd;->sLog:Lcom/burstly/lib/util/LoggerExt;

    return-void
.end method

.method protected constructor <init>(Landroid/app/Activity;Lcom/burstly/lib/conveniencelayer/BurstlyAdSize;)V
    .locals 1
    .parameter "activity"
    .parameter "adSize"

    .prologue
    .line 392
    invoke-direct {p0}, Ljava/lang/Object;-><init>()V

    .line 87
    new-instance v0, Ljava/util/ArrayList;

    invoke-direct {v0}, Ljava/util/ArrayList;-><init>()V

    iput-object v0, p0, Lcom/burstly/lib/conveniencelayer/BurstlyBaseAd;->mListeners:Ljava/util/List;

    .line 102
    sget-object v0, Lcom/burstly/lib/conveniencelayer/BurstlyBaseAd$CachingState;->Idle:Lcom/burstly/lib/conveniencelayer/BurstlyBaseAd$CachingState;

    iput-object v0, p0, Lcom/burstly/lib/conveniencelayer/BurstlyBaseAd;->mCachingState:Lcom/burstly/lib/conveniencelayer/BurstlyBaseAd$CachingState;

    .line 122
    new-instance v0, Lcom/burstly/lib/conveniencelayer/BurstlyBaseAd$1;

    invoke-direct {v0, p0}, Lcom/burstly/lib/conveniencelayer/BurstlyBaseAd$1;-><init>(Lcom/burstly/lib/conveniencelayer/BurstlyBaseAd;)V

    iput-object v0, p0, Lcom/burstly/lib/conveniencelayer/BurstlyBaseAd;->mBurstlyAdListener:Lcom/burstly/lib/ui/IBurstlyAdListener;

    .line 300
    new-instance v0, Lcom/burstly/lib/conveniencelayer/BurstlyBaseAd$2;

    invoke-direct {v0, p0}, Lcom/burstly/lib/conveniencelayer/BurstlyBaseAd$2;-><init>(Lcom/burstly/lib/conveniencelayer/BurstlyBaseAd;)V

    iput-object v0, p0, Lcom/burstly/lib/conveniencelayer/BurstlyBaseAd;->mActivityListener:Lcom/burstly/lib/conveniencelayer/IActivityListener;

    .line 327
    new-instance v0, Lcom/burstly/lib/conveniencelayer/BurstlyBaseAd$3;

    invoke-direct {v0, p0}, Lcom/burstly/lib/conveniencelayer/BurstlyBaseAd$3;-><init>(Lcom/burstly/lib/conveniencelayer/BurstlyBaseAd;)V

    iput-object v0, p0, Lcom/burstly/lib/conveniencelayer/BurstlyBaseAd;->mFragmentListener:Lcom/burstly/lib/conveniencelayer/IFragmentListener;

    .line 393
    iput-object p1, p0, Lcom/burstly/lib/conveniencelayer/BurstlyBaseAd;->mActivity:Landroid/app/Activity;

    .line 394
    iput-object p2, p0, Lcom/burstly/lib/conveniencelayer/BurstlyBaseAd;->mAdSize:Lcom/burstly/lib/conveniencelayer/BurstlyAdSize;

    .line 395
    return-void
.end method

.method protected constructor <init>(Landroid/support/v4/app/Fragment;Lcom/burstly/lib/conveniencelayer/BurstlyAdSize;)V
    .locals 1
    .parameter "fragment"
    .parameter "adSize"

    .prologue
    .line 403
    invoke-direct {p0}, Ljava/lang/Object;-><init>()V

    .line 87
    new-instance v0, Ljava/util/ArrayList;

    invoke-direct {v0}, Ljava/util/ArrayList;-><init>()V

    iput-object v0, p0, Lcom/burstly/lib/conveniencelayer/BurstlyBaseAd;->mListeners:Ljava/util/List;

    .line 102
    sget-object v0, Lcom/burstly/lib/conveniencelayer/BurstlyBaseAd$CachingState;->Idle:Lcom/burstly/lib/conveniencelayer/BurstlyBaseAd$CachingState;

    iput-object v0, p0, Lcom/burstly/lib/conveniencelayer/BurstlyBaseAd;->mCachingState:Lcom/burstly/lib/conveniencelayer/BurstlyBaseAd$CachingState;

    .line 122
    new-instance v0, Lcom/burstly/lib/conveniencelayer/BurstlyBaseAd$1;

    invoke-direct {v0, p0}, Lcom/burstly/lib/conveniencelayer/BurstlyBaseAd$1;-><init>(Lcom/burstly/lib/conveniencelayer/BurstlyBaseAd;)V

    iput-object v0, p0, Lcom/burstly/lib/conveniencelayer/BurstlyBaseAd;->mBurstlyAdListener:Lcom/burstly/lib/ui/IBurstlyAdListener;

    .line 300
    new-instance v0, Lcom/burstly/lib/conveniencelayer/BurstlyBaseAd$2;

    invoke-direct {v0, p0}, Lcom/burstly/lib/conveniencelayer/BurstlyBaseAd$2;-><init>(Lcom/burstly/lib/conveniencelayer/BurstlyBaseAd;)V

    iput-object v0, p0, Lcom/burstly/lib/conveniencelayer/BurstlyBaseAd;->mActivityListener:Lcom/burstly/lib/conveniencelayer/IActivityListener;

    .line 327
    new-instance v0, Lcom/burstly/lib/conveniencelayer/BurstlyBaseAd$3;

    invoke-direct {v0, p0}, Lcom/burstly/lib/conveniencelayer/BurstlyBaseAd$3;-><init>(Lcom/burstly/lib/conveniencelayer/BurstlyBaseAd;)V

    iput-object v0, p0, Lcom/burstly/lib/conveniencelayer/BurstlyBaseAd;->mFragmentListener:Lcom/burstly/lib/conveniencelayer/IFragmentListener;

    .line 404
    iput-object p1, p0, Lcom/burstly/lib/conveniencelayer/BurstlyBaseAd;->mFragment:Landroid/support/v4/app/Fragment;

    .line 405
    iput-object p2, p0, Lcom/burstly/lib/conveniencelayer/BurstlyBaseAd;->mAdSize:Lcom/burstly/lib/conveniencelayer/BurstlyAdSize;

    .line 406
    return-void
.end method

.method static synthetic access$000(Lcom/burstly/lib/conveniencelayer/BurstlyBaseAd;)Lcom/burstly/lib/ui/BurstlyView;
    .locals 1
    .parameter "x0"

    .prologue
    .line 44
    iget-object v0, p0, Lcom/burstly/lib/conveniencelayer/BurstlyBaseAd;->mBurstlyView:Lcom/burstly/lib/ui/BurstlyView;

    return-object v0
.end method

.method private setCrids(Ljava/util/Map;)V
    .locals 6
    .parameter
    .annotation system Ldalvik/annotation/Signature;
        value = {
            "(",
            "Ljava/util/Map",
            "<",
            "Ljava/lang/String;",
            "Ljava/lang/Object;",
            ">;)V"
        }
    .end annotation

    .prologue
    .line 611
    .local p1, adsCRIDs:Ljava/util/Map;,"Ljava/util/Map<Ljava/lang/String;Ljava/lang/Object;>;"
    invoke-static {}, Lcom/burstly/lib/conveniencelayer/Burstly;->isIntegrationModeEnabledForThisDevice()Z

    move-result v3

    if-eqz v3, :cond_0

    .line 613
    const/4 v3, 0x1

    :try_start_0
    new-array v1, v3, [Ljava/lang/Class;

    const/4 v3, 0x0

    const-class v4, Ljava/util/Map;

    aput-object v4, v1, v3

    .line 616
    .local v1, paramsClz:[Ljava/lang/Class;,"[Ljava/lang/Class<*>;"
    iget-object v3, p0, Lcom/burstly/lib/conveniencelayer/BurstlyBaseAd;->mBurstlyView:Lcom/burstly/lib/ui/BurstlyView;

    invoke-virtual {v3}, Ljava/lang/Object;->getClass()Ljava/lang/Class;

    move-result-object v3

    const-string v4, "setCridParams"

    invoke-virtual {v3, v4, v1}, Ljava/lang/Class;->getDeclaredMethod(Ljava/lang/String;[Ljava/lang/Class;)Ljava/lang/reflect/Method;

    move-result-object v2

    .line 617
    .local v2, setCridParams:Ljava/lang/reflect/Method;
    const/4 v3, 0x1

    invoke-virtual {v2, v3}, Ljava/lang/reflect/Method;->setAccessible(Z)V

    .line 618
    iget-object v3, p0, Lcom/burstly/lib/conveniencelayer/BurstlyBaseAd;->mBurstlyView:Lcom/burstly/lib/ui/BurstlyView;

    const/4 v4, 0x1

    new-array v4, v4, [Ljava/lang/Object;

    const/4 v5, 0x0

    aput-object p1, v4, v5

    invoke-virtual {v2, v3, v4}, Ljava/lang/reflect/Method;->invoke(Ljava/lang/Object;[Ljava/lang/Object;)Ljava/lang/Object;
    :try_end_0
    .catch Ljava/lang/NoSuchMethodException; {:try_start_0 .. :try_end_0} :catch_0
    .catch Ljava/lang/IllegalArgumentException; {:try_start_0 .. :try_end_0} :catch_1
    .catch Ljava/lang/IllegalAccessException; {:try_start_0 .. :try_end_0} :catch_2
    .catch Ljava/lang/reflect/InvocationTargetException; {:try_start_0 .. :try_end_0} :catch_3

    .line 633
    .end local v1           #paramsClz:[Ljava/lang/Class;,"[Ljava/lang/Class<*>;"
    .end local v2           #setCridParams:Ljava/lang/reflect/Method;
    :cond_0
    :goto_0
    return-void

    .line 620
    :catch_0
    move-exception v0

    .line 621
    .local v0, e:Ljava/lang/NoSuchMethodException;
    invoke-virtual {v0}, Ljava/lang/NoSuchMethodException;->printStackTrace()V

    goto :goto_0

    .line 623
    .end local v0           #e:Ljava/lang/NoSuchMethodException;
    :catch_1
    move-exception v0

    .line 624
    .local v0, e:Ljava/lang/IllegalArgumentException;
    invoke-virtual {v0}, Ljava/lang/IllegalArgumentException;->printStackTrace()V

    goto :goto_0

    .line 626
    .end local v0           #e:Ljava/lang/IllegalArgumentException;
    :catch_2
    move-exception v0

    .line 627
    .local v0, e:Ljava/lang/IllegalAccessException;
    invoke-virtual {v0}, Ljava/lang/IllegalAccessException;->printStackTrace()V

    goto :goto_0

    .line 629
    .end local v0           #e:Ljava/lang/IllegalAccessException;
    :catch_3
    move-exception v0

    .line 630
    .local v0, e:Ljava/lang/reflect/InvocationTargetException;
    invoke-virtual {v0}, Ljava/lang/reflect/InvocationTargetException;->printStackTrace()V

    goto :goto_0
.end method

.method protected static throwIfNotOnMainThread()V
    .locals 2

    .prologue
    .line 63
    invoke-static {}, Ljava/lang/Thread;->currentThread()Ljava/lang/Thread;

    move-result-object v0

    invoke-static {}, Landroid/os/Looper;->getMainLooper()Landroid/os/Looper;

    move-result-object v1

    invoke-virtual {v1}, Landroid/os/Looper;->getThread()Ljava/lang/Thread;

    move-result-object v1

    if-eq v0, v1, :cond_0

    .line 64
    new-instance v0, Ljava/lang/RuntimeException;

    const-string v1, "com.burstly.convenience.Banner must be called from the ui thread"

    invoke-direct {v0, v1}, Ljava/lang/RuntimeException;-><init>(Ljava/lang/String;)V

    throw v0

    .line 66
    :cond_0
    return-void
.end method


# virtual methods
.method public declared-synchronized addBurstlyListener(Lcom/burstly/lib/conveniencelayer/IBurstlyListener;)V
    .locals 1
    .parameter "listener"

    .prologue
    .line 679
    monitor-enter p0

    :try_start_0
    iget-object v0, p0, Lcom/burstly/lib/conveniencelayer/BurstlyBaseAd;->mListeners:Ljava/util/List;

    invoke-interface {v0, p1}, Ljava/util/List;->add(Ljava/lang/Object;)Z
    :try_end_0
    .catchall {:try_start_0 .. :try_end_0} :catchall_0

    .line 680
    monitor-exit p0

    return-void

    .line 679
    :catchall_0
    move-exception v0

    monitor-exit p0

    throw v0
.end method

.method protected baseCacheAd()V
    .locals 6

    .prologue
    const/4 v5, 0x0

    .line 639
    sget-object v0, Lcom/burstly/lib/conveniencelayer/BurstlyBaseAd;->sLog:Lcom/burstly/lib/util/LoggerExt;

    const-string v1, "Burstly Convenience Layer"

    const-string v2, "cacheAd start"

    new-array v3, v5, [Ljava/lang/Object;

    invoke-virtual {v0, v1, v2, v3}, Lcom/burstly/lib/util/LoggerExt;->logWarning(Ljava/lang/String;Ljava/lang/String;[Ljava/lang/Object;)Ljava/lang/String;

    .line 640
    invoke-virtual {p0}, Lcom/burstly/lib/conveniencelayer/BurstlyBaseAd;->baseHasCachedAd()Z

    move-result v0

    if-eqz v0, :cond_0

    .line 641
    sget-object v0, Lcom/burstly/lib/conveniencelayer/BurstlyBaseAd;->sLog:Lcom/burstly/lib/util/LoggerExt;

    const-string v1, "Burstly Convenience Layer"

    const-string v2, "{0}: Ad already cached."

    const/4 v3, 0x1

    new-array v3, v3, [Ljava/lang/Object;

    invoke-virtual {p0}, Lcom/burstly/lib/conveniencelayer/BurstlyBaseAd;->getName()Ljava/lang/String;

    move-result-object v4

    aput-object v4, v3, v5

    invoke-virtual {v0, v1, v2, v3}, Lcom/burstly/lib/util/LoggerExt;->logWarning(Ljava/lang/String;Ljava/lang/String;[Ljava/lang/Object;)Ljava/lang/String;

    .line 642
    iget-object v0, p0, Lcom/burstly/lib/conveniencelayer/BurstlyBaseAd;->mLastCache:Lcom/burstly/lib/conveniencelayer/events/AdCacheEvent;

    invoke-virtual {p0, v0}, Lcom/burstly/lib/conveniencelayer/BurstlyBaseAd;->onCache(Lcom/burstly/lib/conveniencelayer/events/AdCacheEvent;)V

    .line 648
    :goto_0
    sget-object v0, Lcom/burstly/lib/conveniencelayer/BurstlyBaseAd;->sLog:Lcom/burstly/lib/util/LoggerExt;

    const-string v1, "Burstly Convenience Layer"

    const-string v2, "cacheAd end"

    new-array v3, v5, [Ljava/lang/Object;

    invoke-virtual {v0, v1, v2, v3}, Lcom/burstly/lib/util/LoggerExt;->logWarning(Ljava/lang/String;Ljava/lang/String;[Ljava/lang/Object;)Ljava/lang/String;

    .line 649
    return-void

    .line 644
    :cond_0
    invoke-static {}, Lcom/burstly/lib/conveniencelayer/BurstlyBaseAd;->throwIfNotOnMainThread()V

    .line 645
    sget-object v0, Lcom/burstly/lib/conveniencelayer/BurstlyBaseAd$CachingState;->Retrieving:Lcom/burstly/lib/conveniencelayer/BurstlyBaseAd$CachingState;

    iput-object v0, p0, Lcom/burstly/lib/conveniencelayer/BurstlyBaseAd;->mCachingState:Lcom/burstly/lib/conveniencelayer/BurstlyBaseAd$CachingState;

    .line 646
    iget-object v0, p0, Lcom/burstly/lib/conveniencelayer/BurstlyBaseAd;->mBurstlyView:Lcom/burstly/lib/ui/BurstlyView;

    invoke-virtual {v0}, Lcom/burstly/lib/ui/BurstlyView;->precacheAd()V

    goto :goto_0
.end method

.method protected baseHasCachedAd()Z
    .locals 3

    .prologue
    const/4 v0, 0x0

    .line 658
    iget-object v1, p0, Lcom/burstly/lib/conveniencelayer/BurstlyBaseAd;->mBurstlyView:Lcom/burstly/lib/ui/BurstlyView;

    if-eqz v1, :cond_0

    iget-object v1, p0, Lcom/burstly/lib/conveniencelayer/BurstlyBaseAd;->mBurstlyView:Lcom/burstly/lib/ui/BurstlyView;

    invoke-virtual {v1}, Lcom/burstly/lib/ui/BurstlyView;->isCachedAdExpired()Ljava/lang/Boolean;

    move-result-object v1

    if-nez v1, :cond_1

    .line 661
    :cond_0
    :goto_0
    return v0

    :cond_1
    iget-object v1, p0, Lcom/burstly/lib/conveniencelayer/BurstlyBaseAd;->mCachingState:Lcom/burstly/lib/conveniencelayer/BurstlyBaseAd$CachingState;

    sget-object v2, Lcom/burstly/lib/conveniencelayer/BurstlyBaseAd$CachingState;->Retrieved:Lcom/burstly/lib/conveniencelayer/BurstlyBaseAd$CachingState;

    if-ne v1, v2, :cond_0

    iget-object v1, p0, Lcom/burstly/lib/conveniencelayer/BurstlyBaseAd;->mBurstlyView:Lcom/burstly/lib/ui/BurstlyView;

    invoke-virtual {v1}, Lcom/burstly/lib/ui/BurstlyView;->isCachedAdExpired()Ljava/lang/Boolean;

    move-result-object v1

    invoke-virtual {v1}, Ljava/lang/Boolean;->booleanValue()Z

    move-result v1

    if-nez v1, :cond_0

    const/4 v0, 0x1

    goto :goto_0
.end method

.method protected baseIsCachingAd()Z
    .locals 2

    .prologue
    .line 670
    iget-object v0, p0, Lcom/burstly/lib/conveniencelayer/BurstlyBaseAd;->mCachingState:Lcom/burstly/lib/conveniencelayer/BurstlyBaseAd$CachingState;

    sget-object v1, Lcom/burstly/lib/conveniencelayer/BurstlyBaseAd$CachingState;->Retrieving:Lcom/burstly/lib/conveniencelayer/BurstlyBaseAd$CachingState;

    if-ne v0, v1, :cond_0

    const/4 v0, 0x1

    :goto_0
    return v0

    :cond_0
    const/4 v0, 0x0

    goto :goto_0
.end method

.method protected destroyed()V
    .locals 1

    .prologue
    .line 382
    invoke-static {}, Lcom/burstly/lib/conveniencelayer/BurstlyBaseAd;->throwIfNotOnMainThread()V

    .line 384
    iget-object v0, p0, Lcom/burstly/lib/conveniencelayer/BurstlyBaseAd;->mBurstlyView:Lcom/burstly/lib/ui/BurstlyView;

    invoke-virtual {v0}, Lcom/burstly/lib/ui/BurstlyView;->destroy()V

    .line 385
    return-void
.end method

.method public getAdParameters()Ljava/lang/String;
    .locals 1

    .prologue
    .line 795
    iget-object v0, p0, Lcom/burstly/lib/conveniencelayer/BurstlyBaseAd;->mBurstlyView:Lcom/burstly/lib/ui/BurstlyView;

    invoke-virtual {v0}, Lcom/burstly/lib/ui/BurstlyView;->getCrParms()Ljava/lang/String;

    move-result-object v0

    return-object v0
.end method

.method public getAppId()Ljava/lang/String;
    .locals 1

    .prologue
    .line 720
    iget-object v0, p0, Lcom/burstly/lib/conveniencelayer/BurstlyBaseAd;->mBurstlyView:Lcom/burstly/lib/ui/BurstlyView;

    invoke-virtual {v0}, Lcom/burstly/lib/ui/BurstlyView;->getPublisherId()Ljava/lang/String;

    move-result-object v0

    return-object v0
.end method

.method protected getBurstlyView()Lcom/burstly/lib/ui/BurstlyView;
    .locals 1

    .prologue
    .line 462
    iget-object v0, p0, Lcom/burstly/lib/conveniencelayer/BurstlyBaseAd;->mBurstlyView:Lcom/burstly/lib/ui/BurstlyView;

    return-object v0
.end method

.method public getCustomParamsForNetwork(Ljava/lang/String;)Ljava/util/Map;
    .locals 1
    .parameter "networkName"
    .annotation system Ldalvik/annotation/Signature;
        value = {
            "(",
            "Ljava/lang/String;",
            ")",
            "Ljava/util/Map",
            "<",
            "Ljava/lang/String;",
            "*>;"
        }
    .end annotation

    .prologue
    .line 817
    iget-object v0, p0, Lcom/burstly/lib/conveniencelayer/BurstlyBaseAd;->mBurstlyView:Lcom/burstly/lib/ui/BurstlyView;

    invoke-virtual {v0, p1}, Lcom/burstly/lib/ui/BurstlyView;->getCustomParamsForNetwork(Ljava/lang/String;)Ljava/util/Map;

    move-result-object v0

    return-object v0
.end method

.method public getName()Ljava/lang/String;
    .locals 1

    .prologue
    .line 698
    iget-object v0, p0, Lcom/burstly/lib/conveniencelayer/BurstlyBaseAd;->mBurstlyView:Lcom/burstly/lib/ui/BurstlyView;

    invoke-virtual {v0}, Lcom/burstly/lib/ui/BurstlyView;->getBurstlyViewId()Ljava/lang/String;

    move-result-object v0

    return-object v0
.end method

.method public getTargetingParameters()Ljava/lang/String;
    .locals 1

    .prologue
    .line 750
    iget-object v0, p0, Lcom/burstly/lib/conveniencelayer/BurstlyBaseAd;->mBurstlyView:Lcom/burstly/lib/ui/BurstlyView;

    invoke-virtual {v0}, Lcom/burstly/lib/ui/BurstlyView;->getPubTargetingParams()Ljava/lang/String;

    move-result-object v0

    return-object v0
.end method

.method public getZoneId()Ljava/lang/String;
    .locals 1

    .prologue
    .line 729
    iget-object v0, p0, Lcom/burstly/lib/conveniencelayer/BurstlyBaseAd;->mBurstlyView:Lcom/burstly/lib/ui/BurstlyView;

    invoke-virtual {v0}, Lcom/burstly/lib/ui/BurstlyView;->getZoneId()Ljava/lang/String;

    move-result-object v0

    return-object v0
.end method

.method public isPausedRefresh()Z
    .locals 1

    .prologue
    .line 784
    iget-object v0, p0, Lcom/burstly/lib/conveniencelayer/BurstlyBaseAd;->mBurstlyView:Lcom/burstly/lib/ui/BurstlyView;

    invoke-virtual {v0}, Lcom/burstly/lib/ui/BurstlyView;->isPaused()Z

    move-result v0

    return v0
.end method

.method protected onCache(Lcom/burstly/lib/conveniencelayer/events/AdCacheEvent;)V
    .locals 3
    .parameter "event"

    .prologue
    .line 508
    sget-object v2, Lcom/burstly/lib/conveniencelayer/BurstlyBaseAd$CachingState;->Retrieved:Lcom/burstly/lib/conveniencelayer/BurstlyBaseAd$CachingState;

    iput-object v2, p0, Lcom/burstly/lib/conveniencelayer/BurstlyBaseAd;->mCachingState:Lcom/burstly/lib/conveniencelayer/BurstlyBaseAd$CachingState;

    .line 510
    iget-object v2, p0, Lcom/burstly/lib/conveniencelayer/BurstlyBaseAd;->mListeners:Ljava/util/List;

    invoke-interface {v2}, Ljava/util/List;->iterator()Ljava/util/Iterator;

    move-result-object v0

    .local v0, i$:Ljava/util/Iterator;
    :goto_0
    invoke-interface {v0}, Ljava/util/Iterator;->hasNext()Z

    move-result v2

    if-eqz v2, :cond_0

    invoke-interface {v0}, Ljava/util/Iterator;->next()Ljava/lang/Object;

    move-result-object v1

    check-cast v1, Lcom/burstly/lib/conveniencelayer/IBurstlyListener;

    .line 511
    .local v1, listener:Lcom/burstly/lib/conveniencelayer/IBurstlyListener;
    invoke-interface {v1, p0, p1}, Lcom/burstly/lib/conveniencelayer/IBurstlyListener;->onCache(Lcom/burstly/lib/conveniencelayer/BurstlyBaseAd;Lcom/burstly/lib/conveniencelayer/events/AdCacheEvent;)V

    goto :goto_0

    .line 513
    .end local v1           #listener:Lcom/burstly/lib/conveniencelayer/IBurstlyListener;
    :cond_0
    return-void
.end method

.method protected onClick(Lcom/burstly/lib/conveniencelayer/events/AdClickEvent;)V
    .locals 3
    .parameter "event"

    .prologue
    .line 521
    iget-object v2, p0, Lcom/burstly/lib/conveniencelayer/BurstlyBaseAd;->mListeners:Ljava/util/List;

    invoke-interface {v2}, Ljava/util/List;->iterator()Ljava/util/Iterator;

    move-result-object v0

    .local v0, i$:Ljava/util/Iterator;
    :goto_0
    invoke-interface {v0}, Ljava/util/Iterator;->hasNext()Z

    move-result v2

    if-eqz v2, :cond_0

    invoke-interface {v0}, Ljava/util/Iterator;->next()Ljava/lang/Object;

    move-result-object v1

    check-cast v1, Lcom/burstly/lib/conveniencelayer/IBurstlyListener;

    .line 522
    .local v1, listener:Lcom/burstly/lib/conveniencelayer/IBurstlyListener;
    invoke-interface {v1, p0, p1}, Lcom/burstly/lib/conveniencelayer/IBurstlyListener;->onClick(Lcom/burstly/lib/conveniencelayer/BurstlyBaseAd;Lcom/burstly/lib/conveniencelayer/events/AdClickEvent;)V

    goto :goto_0

    .line 524
    .end local v1           #listener:Lcom/burstly/lib/conveniencelayer/IBurstlyListener;
    :cond_0
    return-void
.end method

.method protected onDismissFullscreen(Lcom/burstly/lib/conveniencelayer/events/AdDismissFullscreenEvent;)V
    .locals 3
    .parameter "event"

    .prologue
    .line 545
    iget-object v2, p0, Lcom/burstly/lib/conveniencelayer/BurstlyBaseAd;->mListeners:Ljava/util/List;

    invoke-interface {v2}, Ljava/util/List;->iterator()Ljava/util/Iterator;

    move-result-object v0

    .local v0, i$:Ljava/util/Iterator;
    :goto_0
    invoke-interface {v0}, Ljava/util/Iterator;->hasNext()Z

    move-result v2

    if-eqz v2, :cond_0

    invoke-interface {v0}, Ljava/util/Iterator;->next()Ljava/lang/Object;

    move-result-object v1

    check-cast v1, Lcom/burstly/lib/conveniencelayer/IBurstlyListener;

    .line 546
    .local v1, listener:Lcom/burstly/lib/conveniencelayer/IBurstlyListener;
    invoke-interface {v1, p0, p1}, Lcom/burstly/lib/conveniencelayer/IBurstlyListener;->onDismissFullscreen(Lcom/burstly/lib/conveniencelayer/BurstlyBaseAd;Lcom/burstly/lib/conveniencelayer/events/AdDismissFullscreenEvent;)V

    goto :goto_0

    .line 548
    .end local v1           #listener:Lcom/burstly/lib/conveniencelayer/IBurstlyListener;
    :cond_0
    return-void
.end method

.method protected onFail(Lcom/burstly/lib/conveniencelayer/events/AdFailEvent;)V
    .locals 3
    .parameter "event"

    .prologue
    .line 532
    sget-object v2, Lcom/burstly/lib/conveniencelayer/BurstlyBaseAd$CachingState;->Idle:Lcom/burstly/lib/conveniencelayer/BurstlyBaseAd$CachingState;

    iput-object v2, p0, Lcom/burstly/lib/conveniencelayer/BurstlyBaseAd;->mCachingState:Lcom/burstly/lib/conveniencelayer/BurstlyBaseAd$CachingState;

    .line 534
    iget-object v2, p0, Lcom/burstly/lib/conveniencelayer/BurstlyBaseAd;->mListeners:Ljava/util/List;

    invoke-interface {v2}, Ljava/util/List;->iterator()Ljava/util/Iterator;

    move-result-object v0

    .local v0, i$:Ljava/util/Iterator;
    :goto_0
    invoke-interface {v0}, Ljava/util/Iterator;->hasNext()Z

    move-result v2

    if-eqz v2, :cond_0

    invoke-interface {v0}, Ljava/util/Iterator;->next()Ljava/lang/Object;

    move-result-object v1

    check-cast v1, Lcom/burstly/lib/conveniencelayer/IBurstlyListener;

    .line 535
    .local v1, listener:Lcom/burstly/lib/conveniencelayer/IBurstlyListener;
    invoke-interface {v1, p0, p1}, Lcom/burstly/lib/conveniencelayer/IBurstlyListener;->onFail(Lcom/burstly/lib/conveniencelayer/BurstlyBaseAd;Lcom/burstly/lib/conveniencelayer/events/AdFailEvent;)V

    goto :goto_0

    .line 537
    .end local v1           #listener:Lcom/burstly/lib/conveniencelayer/IBurstlyListener;
    :cond_0
    return-void
.end method

.method protected onHide(Lcom/burstly/lib/conveniencelayer/events/AdHideEvent;)V
    .locals 3
    .parameter "event"

    .prologue
    .line 483
    iget-object v2, p0, Lcom/burstly/lib/conveniencelayer/BurstlyBaseAd;->mListeners:Ljava/util/List;

    invoke-interface {v2}, Ljava/util/List;->iterator()Ljava/util/Iterator;

    move-result-object v0

    .local v0, i$:Ljava/util/Iterator;
    :goto_0
    invoke-interface {v0}, Ljava/util/Iterator;->hasNext()Z

    move-result v2

    if-eqz v2, :cond_0

    invoke-interface {v0}, Ljava/util/Iterator;->next()Ljava/lang/Object;

    move-result-object v1

    check-cast v1, Lcom/burstly/lib/conveniencelayer/IBurstlyListener;

    .line 484
    .local v1, listener:Lcom/burstly/lib/conveniencelayer/IBurstlyListener;
    invoke-interface {v1, p0, p1}, Lcom/burstly/lib/conveniencelayer/IBurstlyListener;->onHide(Lcom/burstly/lib/conveniencelayer/BurstlyBaseAd;Lcom/burstly/lib/conveniencelayer/events/AdHideEvent;)V

    goto :goto_0

    .line 487
    .end local v1           #listener:Lcom/burstly/lib/conveniencelayer/IBurstlyListener;
    :cond_0
    const/4 v2, 0x0

    iput-object v2, p0, Lcom/burstly/lib/conveniencelayer/BurstlyBaseAd;->mLastShow:Lcom/burstly/lib/conveniencelayer/events/AdShowEvent;

    .line 488
    return-void
.end method

.method protected onPresentFullscreen(Lcom/burstly/lib/conveniencelayer/events/AdPresentFullscreenEvent;)V
    .locals 3
    .parameter "event"

    .prologue
    .line 556
    iget-object v2, p0, Lcom/burstly/lib/conveniencelayer/BurstlyBaseAd;->mListeners:Ljava/util/List;

    invoke-interface {v2}, Ljava/util/List;->iterator()Ljava/util/Iterator;

    move-result-object v0

    .local v0, i$:Ljava/util/Iterator;
    :goto_0
    invoke-interface {v0}, Ljava/util/Iterator;->hasNext()Z

    move-result v2

    if-eqz v2, :cond_0

    invoke-interface {v0}, Ljava/util/Iterator;->next()Ljava/lang/Object;

    move-result-object v1

    check-cast v1, Lcom/burstly/lib/conveniencelayer/IBurstlyListener;

    .line 557
    .local v1, listener:Lcom/burstly/lib/conveniencelayer/IBurstlyListener;
    invoke-interface {v1, p0, p1}, Lcom/burstly/lib/conveniencelayer/IBurstlyListener;->onPresentFullscreen(Lcom/burstly/lib/conveniencelayer/BurstlyBaseAd;Lcom/burstly/lib/conveniencelayer/events/AdPresentFullscreenEvent;)V

    goto :goto_0

    .line 559
    .end local v1           #listener:Lcom/burstly/lib/conveniencelayer/IBurstlyListener;
    :cond_0
    return-void
.end method

.method protected onShow(Lcom/burstly/lib/conveniencelayer/events/AdShowEvent;)V
    .locals 3
    .parameter "event"

    .prologue
    .line 496
    sget-object v2, Lcom/burstly/lib/conveniencelayer/BurstlyBaseAd$CachingState;->Idle:Lcom/burstly/lib/conveniencelayer/BurstlyBaseAd$CachingState;

    iput-object v2, p0, Lcom/burstly/lib/conveniencelayer/BurstlyBaseAd;->mCachingState:Lcom/burstly/lib/conveniencelayer/BurstlyBaseAd$CachingState;

    .line 497
    iget-object v2, p0, Lcom/burstly/lib/conveniencelayer/BurstlyBaseAd;->mListeners:Ljava/util/List;

    invoke-interface {v2}, Ljava/util/List;->iterator()Ljava/util/Iterator;

    move-result-object v0

    .local v0, i$:Ljava/util/Iterator;
    :goto_0
    invoke-interface {v0}, Ljava/util/Iterator;->hasNext()Z

    move-result v2

    if-eqz v2, :cond_0

    invoke-interface {v0}, Ljava/util/Iterator;->next()Ljava/lang/Object;

    move-result-object v1

    check-cast v1, Lcom/burstly/lib/conveniencelayer/IBurstlyListener;

    .line 498
    .local v1, listener:Lcom/burstly/lib/conveniencelayer/IBurstlyListener;
    invoke-interface {v1, p0, p1}, Lcom/burstly/lib/conveniencelayer/IBurstlyListener;->onShow(Lcom/burstly/lib/conveniencelayer/BurstlyBaseAd;Lcom/burstly/lib/conveniencelayer/events/AdShowEvent;)V

    goto :goto_0

    .line 500
    .end local v1           #listener:Lcom/burstly/lib/conveniencelayer/IBurstlyListener;
    :cond_0
    return-void
.end method

.method public pauseRefresh()V
    .locals 2

    .prologue
    .line 768
    iget-object v0, p0, Lcom/burstly/lib/conveniencelayer/BurstlyBaseAd;->mBurstlyView:Lcom/burstly/lib/ui/BurstlyView;

    const/4 v1, 0x1

    invoke-virtual {v0, v1}, Lcom/burstly/lib/ui/BurstlyView;->setPaused(Z)V

    .line 769
    return-void
.end method

.method protected paused()V
    .locals 2

    .prologue
    .line 368
    invoke-static {}, Lcom/burstly/lib/conveniencelayer/BurstlyBaseAd;->throwIfNotOnMainThread()V

    .line 370
    iget-object v0, p0, Lcom/burstly/lib/conveniencelayer/BurstlyBaseAd;->mBurstlyView:Lcom/burstly/lib/ui/BurstlyView;

    invoke-virtual {v0}, Lcom/burstly/lib/ui/BurstlyView;->onHideActivity()V

    .line 372
    iget-object v0, p0, Lcom/burstly/lib/conveniencelayer/BurstlyBaseAd;->mCachingState:Lcom/burstly/lib/conveniencelayer/BurstlyBaseAd$CachingState;

    sget-object v1, Lcom/burstly/lib/conveniencelayer/BurstlyBaseAd$CachingState;->Retrieving:Lcom/burstly/lib/conveniencelayer/BurstlyBaseAd$CachingState;

    if-ne v0, v1, :cond_0

    .line 373
    sget-object v0, Lcom/burstly/lib/conveniencelayer/BurstlyBaseAd$CachingState;->Idle:Lcom/burstly/lib/conveniencelayer/BurstlyBaseAd$CachingState;

    iput-object v0, p0, Lcom/burstly/lib/conveniencelayer/BurstlyBaseAd;->mCachingState:Lcom/burstly/lib/conveniencelayer/BurstlyBaseAd$CachingState;

    .line 375
    :cond_0
    return-void
.end method

.method public declared-synchronized removeBurstlyListener(Lcom/burstly/lib/conveniencelayer/IBurstlyListener;)V
    .locals 1
    .parameter "listener"

    .prologue
    .line 688
    monitor-enter p0

    :try_start_0
    iget-object v0, p0, Lcom/burstly/lib/conveniencelayer/BurstlyBaseAd;->mListeners:Ljava/util/List;

    invoke-interface {v0, p1}, Ljava/util/List;->remove(Ljava/lang/Object;)Z
    :try_end_0
    .catchall {:try_start_0 .. :try_end_0} :catchall_0

    .line 689
    monitor-exit p0

    return-void

    .line 688
    :catchall_0
    move-exception v0

    monitor-exit p0

    throw v0
.end method

.method protected requestStarted()V
    .locals 1

    .prologue
    .line 565
    new-instance v0, Ljava/util/ArrayList;

    invoke-direct {v0}, Ljava/util/ArrayList;-><init>()V

    iput-object v0, p0, Lcom/burstly/lib/conveniencelayer/BurstlyBaseAd;->mFailedCreativesList:Ljava/util/ArrayList;

    .line 566
    return-void
.end method

.method public resumeRefresh()V
    .locals 2

    .prologue
    .line 775
    iget-object v0, p0, Lcom/burstly/lib/conveniencelayer/BurstlyBaseAd;->mBurstlyView:Lcom/burstly/lib/ui/BurstlyView;

    const/4 v1, 0x0

    invoke-virtual {v0, v1}, Lcom/burstly/lib/ui/BurstlyView;->setPaused(Z)V

    .line 776
    return-void
.end method

.method protected resumed()V
    .locals 1

    .prologue
    .line 358
    invoke-static {}, Lcom/burstly/lib/conveniencelayer/BurstlyBaseAd;->throwIfNotOnMainThread()V

    .line 360
    iget-object v0, p0, Lcom/burstly/lib/conveniencelayer/BurstlyBaseAd;->mBurstlyView:Lcom/burstly/lib/ui/BurstlyView;

    invoke-virtual {v0}, Lcom/burstly/lib/ui/BurstlyView;->onShowActivity()V

    .line 361
    return-void
.end method

.method public setAdParameters(Ljava/lang/String;)V
    .locals 1
    .parameter "adParameters"

    .prologue
    .line 761
    iget-object v0, p0, Lcom/burstly/lib/conveniencelayer/BurstlyBaseAd;->mBurstlyView:Lcom/burstly/lib/ui/BurstlyView;

    invoke-virtual {v0, p1}, Lcom/burstly/lib/ui/BurstlyView;->setCrParms(Ljava/lang/String;)V

    .line 762
    return-void
.end method

.method public setBurstlyUserInfo(Ljava/util/Map;)V
    .locals 1
    .parameter
    .annotation system Ldalvik/annotation/Signature;
        value = {
            "(",
            "Ljava/util/Map",
            "<",
            "Ljava/lang/String;",
            "Ljava/lang/String;",
            ">;)V"
        }
    .end annotation

    .prologue
    .line 711
    .local p1, burstlyUserInfo:Ljava/util/Map;,"Ljava/util/Map<Ljava/lang/String;Ljava/lang/String;>;"
    iget-object v0, p0, Lcom/burstly/lib/conveniencelayer/BurstlyBaseAd;->mBurstlyView:Lcom/burstly/lib/ui/BurstlyView;

    invoke-virtual {v0, p1}, Lcom/burstly/lib/ui/BurstlyView;->setClientTargetParams(Ljava/util/Map;)V

    .line 712
    return-void
.end method

.method protected setBurstlyView(Lcom/burstly/lib/ui/BurstlyView;)V
    .locals 7
    .parameter "burstlyView"

    .prologue
    const/4 v6, 0x0

    .line 416
    invoke-static {}, Lcom/burstly/lib/conveniencelayer/BurstlyBaseAd;->throwIfNotOnMainThread()V

    .line 417
    iget-object v1, p0, Lcom/burstly/lib/conveniencelayer/BurstlyBaseAd;->mBurstlyView:Lcom/burstly/lib/ui/BurstlyView;

    if-eqz v1, :cond_0

    .line 418
    new-instance v1, Ljava/lang/RuntimeException;

    const-string v2, "BurstlyView cannot be changed."

    invoke-direct {v1, v2}, Ljava/lang/RuntimeException;-><init>(Ljava/lang/String;)V

    throw v1

    .line 421
    :cond_0
    iput-object p1, p0, Lcom/burstly/lib/conveniencelayer/BurstlyBaseAd;->mBurstlyView:Lcom/burstly/lib/ui/BurstlyView;

    .line 422
    iget-object v1, p0, Lcom/burstly/lib/conveniencelayer/BurstlyBaseAd;->mBurstlyView:Lcom/burstly/lib/ui/BurstlyView;

    invoke-static {}, Lcom/burstly/lib/conveniencelayer/Burstly;->getAppID()Ljava/lang/String;

    move-result-object v2

    invoke-virtual {v1, v2}, Lcom/burstly/lib/ui/BurstlyView;->setPublisherId(Ljava/lang/String;)V

    .line 425
    iget-object v1, p0, Lcom/burstly/lib/conveniencelayer/BurstlyBaseAd;->mBurstlyView:Lcom/burstly/lib/ui/BurstlyView;

    iget-object v2, p0, Lcom/burstly/lib/conveniencelayer/BurstlyBaseAd;->mBurstlyAdListener:Lcom/burstly/lib/ui/IBurstlyAdListener;

    invoke-virtual {v1, v2}, Lcom/burstly/lib/ui/BurstlyView;->setBurstlyAdListener(Lcom/burstly/lib/ui/IBurstlyAdListener;)V

    .line 427
    invoke-static {}, Lcom/burstly/lib/conveniencelayer/Burstly;->getIntegrationNetwork()Lcom/burstly/lib/conveniencelayer/BurstlyIntegrationModeAdNetworks;

    move-result-object v0

    .line 429
    .local v0, network:Lcom/burstly/lib/conveniencelayer/BurstlyIntegrationModeAdNetworks;
    invoke-static {}, Lcom/burstly/lib/conveniencelayer/Burstly;->isIntegrationModeEnabledForThisDevice()Z

    move-result v1

    if-eqz v1, :cond_5

    .line 430
    sget-object v1, Lcom/burstly/lib/conveniencelayer/BurstlyBaseAd;->sLog:Lcom/burstly/lib/util/LoggerExt;

    const-string v2, "Burstly Convenience Layer"

    const-string v3, "Device is Test Device."

    new-array v4, v6, [Ljava/lang/Object;

    invoke-virtual {v1, v2, v3, v4}, Lcom/burstly/lib/util/LoggerExt;->logDebug(Ljava/lang/String;Ljava/lang/String;[Ljava/lang/Object;)Ljava/lang/String;

    .line 432
    sget-object v1, Lcom/burstly/lib/conveniencelayer/BurstlyIntegrationModeAdNetworks;->DISABLED:Lcom/burstly/lib/conveniencelayer/BurstlyIntegrationModeAdNetworks;

    if-eq v0, v1, :cond_1

    .line 433
    sget-object v1, Lcom/burstly/lib/conveniencelayer/BurstlyBaseAd;->sLog:Lcom/burstly/lib/util/LoggerExt;

    const-string v2, "Burstly Convenience Layer"

    const-string v3, "Ad {0} will display sample ads from specified ad network."

    const/4 v4, 0x1

    new-array v4, v4, [Ljava/lang/Object;

    invoke-virtual {p0}, Lcom/burstly/lib/conveniencelayer/BurstlyBaseAd;->getName()Ljava/lang/String;

    move-result-object v5

    aput-object v5, v4, v6

    invoke-virtual {v1, v2, v3, v4}, Lcom/burstly/lib/util/LoggerExt;->logDebug(Ljava/lang/String;Ljava/lang/String;[Ljava/lang/Object;)Ljava/lang/String;

    .line 434
    iget-object v2, p0, Lcom/burstly/lib/conveniencelayer/BurstlyBaseAd;->mBurstlyView:Lcom/burstly/lib/ui/BurstlyView;

    iget-object v1, p0, Lcom/burstly/lib/conveniencelayer/BurstlyBaseAd;->mAdSize:Lcom/burstly/lib/conveniencelayer/BurstlyAdSize;

    invoke-virtual {v1}, Lcom/burstly/lib/conveniencelayer/BurstlyAdSize;->isInterstitial()Z

    move-result v1

    if-eqz v1, :cond_3

    invoke-virtual {v0}, Lcom/burstly/lib/conveniencelayer/BurstlyIntegrationModeAdNetworks;->getInterstitialZone()Ljava/lang/String;

    move-result-object v1

    :goto_0
    invoke-virtual {v2, v1}, Lcom/burstly/lib/ui/BurstlyView;->setZoneId(Ljava/lang/String;)V

    .line 436
    iget-object v1, p0, Lcom/burstly/lib/conveniencelayer/BurstlyBaseAd;->mBurstlyView:Lcom/burstly/lib/ui/BurstlyView;

    invoke-static {}, Lcom/burstly/lib/conveniencelayer/BurstlyIntegrationModeAdNetworks;->getAppId()Ljava/lang/String;

    move-result-object v2

    invoke-virtual {v1, v2}, Lcom/burstly/lib/ui/BurstlyView;->setPublisherId(Ljava/lang/String;)V

    .line 439
    :cond_1
    iget-object v1, p0, Lcom/burstly/lib/conveniencelayer/BurstlyBaseAd;->mActivity:Landroid/app/Activity;

    if-eqz v1, :cond_4

    .line 440
    iget-object v1, p0, Lcom/burstly/lib/conveniencelayer/BurstlyBaseAd;->mActivity:Landroid/app/Activity;

    invoke-static {v1}, Lcom/burstly/lib/conveniencelayer/Burstly;->showTestModeAlert(Landroid/content/Context;)V

    .line 449
    :cond_2
    :goto_1
    iget-object v1, p0, Lcom/burstly/lib/conveniencelayer/BurstlyBaseAd;->mActivity:Landroid/app/Activity;

    if-eqz v1, :cond_6

    .line 450
    iget-object v1, p0, Lcom/burstly/lib/conveniencelayer/BurstlyBaseAd;->mActivity:Landroid/app/Activity;

    iget-object v2, p0, Lcom/burstly/lib/conveniencelayer/BurstlyBaseAd;->mActivityListener:Lcom/burstly/lib/conveniencelayer/IActivityListener;

    invoke-static {v1, v2}, Lcom/burstly/lib/conveniencelayer/Burstly;->addActivityListener(Landroid/app/Activity;Lcom/burstly/lib/conveniencelayer/IActivityListener;)V

    .line 454
    :goto_2
    return-void

    .line 434
    :cond_3
    invoke-virtual {v0}, Lcom/burstly/lib/conveniencelayer/BurstlyIntegrationModeAdNetworks;->getBannerZone()Ljava/lang/String;

    move-result-object v1

    goto :goto_0

    .line 441
    :cond_4
    iget-object v1, p0, Lcom/burstly/lib/conveniencelayer/BurstlyBaseAd;->mFragment:Landroid/support/v4/app/Fragment;

    if-eqz v1, :cond_2

    .line 442
    iget-object v1, p0, Lcom/burstly/lib/conveniencelayer/BurstlyBaseAd;->mFragment:Landroid/support/v4/app/Fragment;

    invoke-virtual {v1}, Landroid/support/v4/app/Fragment;->getActivity()Landroid/support/v4/app/FragmentActivity;

    move-result-object v1

    invoke-static {v1}, Lcom/burstly/lib/conveniencelayer/Burstly;->showTestModeAlert(Landroid/content/Context;)V

    goto :goto_1

    .line 446
    :cond_5
    sget-object v1, Lcom/burstly/lib/conveniencelayer/BurstlyBaseAd;->sLog:Lcom/burstly/lib/util/LoggerExt;

    const-string v2, "Burstly Convenience Layer"

    const-string v3, "Device is not a test device. Using default pub and zone."

    new-array v4, v6, [Ljava/lang/Object;

    invoke-virtual {v1, v2, v3, v4}, Lcom/burstly/lib/util/LoggerExt;->logDebug(Ljava/lang/String;Ljava/lang/String;[Ljava/lang/Object;)Ljava/lang/String;

    goto :goto_1

    .line 452
    :cond_6
    iget-object v1, p0, Lcom/burstly/lib/conveniencelayer/BurstlyBaseAd;->mFragment:Landroid/support/v4/app/Fragment;

    iget-object v2, p0, Lcom/burstly/lib/conveniencelayer/BurstlyBaseAd;->mFragmentListener:Lcom/burstly/lib/conveniencelayer/IFragmentListener;

    invoke-static {v1, v2}, Lcom/burstly/lib/conveniencelayer/Burstly;->addFragmentListener(Landroid/support/v4/app/Fragment;Lcom/burstly/lib/conveniencelayer/IFragmentListener;)V

    goto :goto_2
.end method

.method public setCustomParamsForNetwork(Ljava/lang/String;Ljava/util/Map;)V
    .locals 1
    .parameter "networkName"
    .parameter
    .annotation system Ldalvik/annotation/Signature;
        value = {
            "(",
            "Ljava/lang/String;",
            "Ljava/util/Map",
            "<",
            "Ljava/lang/String;",
            "*>;)V"
        }
    .end annotation

    .prologue
    .line 806
    .local p2, params:Ljava/util/Map;,"Ljava/util/Map<Ljava/lang/String;*>;"
    iget-object v0, p0, Lcom/burstly/lib/conveniencelayer/BurstlyBaseAd;->mBurstlyView:Lcom/burstly/lib/ui/BurstlyView;

    invoke-virtual {v0, p1, p2}, Lcom/burstly/lib/ui/BurstlyView;->setCustomParamsForNetwork(Ljava/lang/String;Ljava/util/Map;)V

    .line 807
    return-void
.end method

.method public setLayoutParams(Landroid/view/ViewGroup$LayoutParams;)V
    .locals 1
    .parameter "params"

    .prologue
    .line 471
    if-eqz p1, :cond_0

    .line 472
    iget-object v0, p0, Lcom/burstly/lib/conveniencelayer/BurstlyBaseAd;->mBurstlyView:Lcom/burstly/lib/ui/BurstlyView;

    invoke-virtual {v0, p1}, Lcom/burstly/lib/ui/BurstlyView;->setLayoutParams(Landroid/view/ViewGroup$LayoutParams;)V

    .line 474
    :cond_0
    return-void
.end method

.method public setTargetingParameters(Ljava/lang/String;)V
    .locals 1
    .parameter "targetingParams"

    .prologue
    .line 741
    iget-object v0, p0, Lcom/burstly/lib/conveniencelayer/BurstlyBaseAd;->mBurstlyView:Lcom/burstly/lib/ui/BurstlyView;

    invoke-virtual {v0, p1}, Lcom/burstly/lib/ui/BurstlyView;->setPubTargetingParams(Ljava/lang/String;)V

    .line 742
    return-void
.end method

.method public showAd()V
    .locals 2

    .prologue
    .line 590
    invoke-static {}, Lcom/burstly/lib/conveniencelayer/BurstlyBaseAd;->throwIfNotOnMainThread()V

    .line 591
    iget-object v0, p0, Lcom/burstly/lib/conveniencelayer/BurstlyBaseAd;->mBurstlyView:Lcom/burstly/lib/ui/BurstlyView;

    iget-object v1, p0, Lcom/burstly/lib/conveniencelayer/BurstlyBaseAd;->mAdSize:Lcom/burstly/lib/conveniencelayer/BurstlyAdSize;

    invoke-virtual {v0, v1}, Lcom/burstly/lib/ui/BurstlyView;->setAdSize(Lcom/burstly/lib/conveniencelayer/BurstlyAdSize;)V

    .line 592
    iget-object v0, p0, Lcom/burstly/lib/conveniencelayer/BurstlyBaseAd;->mBurstlyView:Lcom/burstly/lib/ui/BurstlyView;

    iget-object v1, p0, Lcom/burstly/lib/conveniencelayer/BurstlyBaseAd;->mAdSize:Lcom/burstly/lib/conveniencelayer/BurstlyAdSize;

    invoke-virtual {v1}, Lcom/burstly/lib/conveniencelayer/BurstlyAdSize;->isInterstitial()Z

    move-result v1

    invoke-virtual {v0, v1}, Lcom/burstly/lib/ui/BurstlyView;->setInterstitalMode(Z)V

    .line 593
    iget-object v0, p0, Lcom/burstly/lib/conveniencelayer/BurstlyBaseAd;->mBurstlyView:Lcom/burstly/lib/ui/BurstlyView;

    invoke-virtual {v0}, Lcom/burstly/lib/ui/BurstlyView;->sendRequestForAd()V

    .line 594
    return-void
.end method

.method public showAd(Ljava/util/Map;)V
    .locals 0
    .parameter
    .annotation system Ldalvik/annotation/Signature;
        value = {
            "(",
            "Ljava/util/Map",
            "<",
            "Ljava/lang/String;",
            "Ljava/lang/Object;",
            ">;)V"
        }
    .end annotation

    .prologue
    .line 600
    .local p1, adsCRIDs:Ljava/util/Map;,"Ljava/util/Map<Ljava/lang/String;Ljava/lang/Object;>;"
    invoke-direct {p0, p1}, Lcom/burstly/lib/conveniencelayer/BurstlyBaseAd;->setCrids(Ljava/util/Map;)V

    .line 601
    invoke-virtual {p0}, Lcom/burstly/lib/conveniencelayer/BurstlyBaseAd;->showAd()V

    .line 602
    return-void
.end method

.method protected singleCreativeFailed(Ljava/lang/String;)V
    .locals 1
    .parameter "network"

    .prologue
    .line 574
    iget-object v0, p0, Lcom/burstly/lib/conveniencelayer/BurstlyBaseAd;->mFailedCreativesList:Ljava/util/ArrayList;

    invoke-virtual {v0, p1}, Ljava/util/ArrayList;->add(Ljava/lang/Object;)Z

    .line 575
    return-void
.end method

.method protected tryToLoadCreative(Ljava/lang/String;)V
    .locals 0
    .parameter "network"

    .prologue
    .line 583
    iput-object p1, p0, Lcom/burstly/lib/conveniencelayer/BurstlyBaseAd;->mCurrentCreative:Ljava/lang/String;

    .line 584
    return-void
.end method
